<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/12/14
  Time: 13:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<el-card>
    <el-row>
        <el-col :md="{span:10,offset:7}">
            <el-table :data="BankMsgAll" style="width: 100%" max-height="250px">
                <el-table-column prop="bankId" label="id"></el-table-column>
                <el-table-column prop="bankName" label="银行名称"></el-table-column>
                <el-table-column label="操作" width="150">
                    <template #default="scope">
                        <el-popconfirm title="是否删除?" @confirm="deleteBankMsg(scope.row.bankId)">
                            <template #reference>
                                <el-button
                                        size="mini"
                                        type="danger"

                                >删除
                                </el-button
                                >
                            </template>
                        </el-popconfirm>
                        <el-button
                                size="mini"
                                @click="editBankMsg(scope.row)"
                        >修改
                        </el-button
                        >
                    </template>
                </el-table-column>
            </el-table>

            <el-divider content-position="left">修改银行名称:</el-divider>
            <el-form label-width="80" inline>
                <el-form-item label="ID:">
                    <el-input v-model="managerBank.updateBankId" disabled/>
                </el-form-item>
                <el-form-item label="名称:">
                    <el-input v-model="managerBank.updateBankName"/>
                </el-form-item>
                <el-form-item label="操作:">
                    <el-button @click="updateBankMsg">确认修改</el-button>
                    <el-button @click="clearUpdateBankMsg">清空</el-button>
                </el-form-item>
            </el-form>
            <el-divider content-position="left">添加银行:</el-divider>
            <el-form label-width="80" inline>
                <el-form-item label="名称:">
                    <el-input v-model="managerBank.addBankName"/>
                </el-form-item>
                <el-form-item label="操作:">
                    <el-popconfirm title="是否添加?" @confirm="addBankMsg">
                        <template #reference>
                            <el-button>确认添加</el-button>
                        </template>
                    </el-popconfirm>

                </el-form-item>
            </el-form>
        </el-col>
    </el-row>
</el-card>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/admin/adminBank.css">